package pers.xiaojun.boot.module.system.dao.entity.tenant;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import pers.xiaojun.boot.common.enums.CommonStatusEnum;
import pers.xiaojun.boot.mybatis.core.enitiy.BaseEntity;

import java.util.Set;

/**
 * 租户套餐实体
 *
 * @author xiaojun
 * @since 2025-11-22
 */
@TableName(value = "system_tenant_package", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@Data
public class TenantPackageDO extends BaseEntity {

    /**
     * 套餐编号，自增
     */
    private Long id;

    /**
     * 套餐名，唯一
     */
    private String name;

    /**
     * 租户套餐状态
     * <p>
     * 枚举 {@link CommonStatusEnum}
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 关联的菜单编号
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Set<Long> menuIds;

}
